package org.example;

import org.example.contain.CopyOnWriteListTest;

import java.io.InputStream;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingDeque;

/**
 * @author Yyming
 * @version 10.0
 * Created by Yyming on 2020/9/9
 */
public class HighCpu {
    public static void main(String[] args) throws Exception {
//        BlockingQueue<String> blockingQueue = new LinkedBlockingDeque<>();
//        BlockingQueue<String> blockingQueue1 = new ArrayBlockingQueue<>(123);
//        blockingQueue1.take();
//        Path path = Paths.get("");
//        Files.exists(path);
        List<Integer> list = new ArrayList<>();
        list.add(1);
        list.add(3);
        list.stream().filter(x -> x>2).forEach(System.out::println);
    }

    private int compute() {
        InputStream resourceAsStream = this.getClass().getResourceAsStream("111.jpg");

        int a = 1;
        int b = 2;
        return (a + b) * 10;
    }


}
